#include "circle.h"
#include "oblong.h"
#include "square.h"
#include "et.h"

int main(){
    shape *c=new circle;
    cout <<"圆形周长:"<<c->Perimeter()<<endl;
    cout <<"圆形面积:"<<c->area()<<endl;

    shape *r=new oblong;
    cout <<"长方形周长:"<<r->Perimeter()<<endl;
    cout <<"长方形面积:"<<r->area()<<endl;

    shape *s=new square;
    cout <<"正方形周长:"<<s->Perimeter()<<endl;
    cout <<"正方形面积:"<<s->area()<<endl;

    shape *t=new et;
    cout <<"等边三角形周长:"<<t->Perimeter()<<endl;
    cout <<"等边三角形面积:"<<t->area()<<endl;
}
